package com.hsm.test2;

public class Test3 {
    public static void main(String[] args) {
        int[] arr = {1,2,3};
        System.out.println(arr.length);
        int[] arr2 =null;
        //运行时的异常，空指针异常
        System.out.println(arr2.length);
        //运行时的异常，越界异常
        System.out.println(arr[10]);
    }
}
